import request from '@/utils/request'

// 用户列表	GET pp/adm/v1/pico/customer/list
export function getCustomerList(params) {
  return request({
    url: `/adm/v1/pico/customer/list`,
    method: 'get',
    params,
  })
}
// 用户详情	GET pp/adm/v1/pico/customer/34077
export function getCustomerDetail(id) {
  return request({
    url: `/adm/v1/pico/customer/${id}`,
    method: 'get',
  })
}

// 小饼干	GET pp/adm/v1/wallet/trans
export function getWalletList(params) {
  return request({
    // url: `/adm/v1/wallet/trans`,
    url: "/adm/v1/biscuit/trans",
    method: 'get',
    params,
  })
}
// 修改设置	PUT /adm/v1/pico/customer/update
export function updateCustomerAccount(data) {
  return request({
    url: `/adm/v1/pico/customer/update`,
    method: 'put',
    data,
  })
}
// 开启/关闭用户认证 PUT /adm/v1/pico/customer/vip/cert
export function updateCustomerIdentity(data) {
  return request({
    url: `/adm/v1/pico/customer/vip/cert`,
    method: 'put',
    data,
  })
}
// 登录日志	GET /adm/v1/pico/customer/login/log/list
export function getCustomerLoginList(params) {
  return request({
    url: `/adm/v1/pico/customer/login/log/list`,
    method: 'get',
    params,
  })
}